package com.edu.service;

import com.edu.entity.OrderDetailEntity;

import java.util.LinkedList;

/**
 * com.edu.service
 * 2024/7/11 8:59
 *
 * @author Fancy
 * @version 1.0
 */
public interface CartsService {
    LinkedList<OrderDetailEntity> getCartItemByUserId(int userId);
    int addToCart(OrderDetailEntity cart, int userId);

    int updateCartItemQuantity(int userId, int cartItemId, int quantity);

    int deleteCartItem(int userId, int cartItemId);
}
